/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servinf.ani.sincronizador.service;

import com.servinf.ani.sincronizador.dao.AssignmentTypeDAO;
import com.servinf.ani.sincronizador.entities.TipoIntervencion;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Clase de servicios para el tipo de proyecto.
 * @author mortiz
 */
@Component
public class AssignmentTypeService {
    
    private AssignmentTypeDAO assignmentTypeDAO;

    public AssignmentTypeDAO getAssignmentTypeDAO() {
        return assignmentTypeDAO;
    }

    @Autowired
    public void setAssignmentTypeDAO(AssignmentTypeDAO assignmentTypeDAO) {
        this.assignmentTypeDAO = assignmentTypeDAO;
    }
   
    /**
     * Retorna la lista de las generaciones o tipos de proyecto
     * @return 
     */
    public List<TipoIntervencion> findALl(){
            List<TipoIntervencion> types = getAssignmentTypeDAO().findAll();
            return types;
    }
    
}
